#pragma once
#include "assert.h"
#include "Plane.h"

class Triangle3D:public Plane{
public:
	Vec3 p0;
	Vec3 p1;
	Vec3 p2;
	Triangle3D(const Vec3& p0, const Vec3& p1, const Vec3& p2);
	inline Vec3& operator[](const int& idx){assert(idx<3);return ((Vec3*)(&p0))[idx];};
};
